import { mergeOptions } from "../utils/index";

export function initMixin(Vue) {
	// 混合属性到实例上
	Vue.mixin = function (mixin) {
		// 合并当前对象和传入的对象
		this.options = mergeOptions(this.options, mixin);
	};
}
